package com.aqie.seckill.exception;

import com.aqie.seckill.result.CodeMsg;
import lombok.Getter;

// 全局业务异常
@Getter
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private CodeMsg cm;

    public GlobalException(CodeMsg cm) {
        super(cm.toString());
        this.cm = cm;
    }

}
